package com.ada.myblog.service.Impl.ArticleService;

import com.ada.myblog.pojo.Article;
import com.ada.myblog.repository.ArticleRepository;
import com.ada.myblog.service.IArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

@Service
public class ArticleService implements IArticleService {
    @Autowired
    ArticleRepository articleRepository;
    @Override
    public Page<Article> findAll(Pageable pageable) {
        return articleRepository.findAll(pageable);
    }
}
